package com.itcast.java.product.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * sku信息实体类
 *
 * @author xiaobai
 * @date 2021-06-27 19:31:58
 */
@Data
@TableName("pms_sku_info")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "PmsSkuInfoEntity对象", description = "sku信息")
public class PmsSkuInfoEntity implements Serializable{

private static final long serialVersionUID=1L;

        @ApiModelProperty(value = "skuId")
                @TableId(value = "sku_id", type = IdType.AUTO)
                private Long skuId;

        @ApiModelProperty(value = "spuId")
    @TableField("spu_id")
        private Long spuId;

        @ApiModelProperty(value = "sku名称")
    @TableField("sku_name")
        private String skuName;

        @ApiModelProperty(value = "sku介绍描述")
    @TableField("sku_desc")
        private String skuDesc;

        @ApiModelProperty(value = "所属分类id")
    @TableField("catalog_id")
        private Long catalogId;

        @ApiModelProperty(value = "品牌id")
    @TableField("brand_id")
        private Long brandId;

        @ApiModelProperty(value = "默认图片")
    @TableField("sku_default_img")
        private String skuDefaultImg;

        @ApiModelProperty(value = "标题")
    @TableField("sku_title")
        private String skuTitle;

        @ApiModelProperty(value = "副标题")
    @TableField("sku_subtitle")
        private String skuSubtitle;

        @ApiModelProperty(value = "价格")
    @TableField("price")
        private BigDecimal price;

        @ApiModelProperty(value = "销量")
    @TableField("sale_count")
        private Long saleCount;

        }